
<section style="background-color: rgb(255, 255, 255);padding-top: 10px">
    <section class="Powered-by-XIUMI V5" style="position: static;">
        <section style="text-align: center; margin: 30px 0% 10px; position: static;">
            <section class="" >
                <section class="Powered-by-XIUMI V5" style="position: static;">
                    <section class="" style="margin: -45px 0% 0px; position: static;">
                        <section class="" style="display: inline-block; width: 25%; vertical-align: top; padding: 10px; border-top: 0px solid rgb(62, 62, 62); border-top-left-radius: 0px; background-color: rgb(255, 255, 255);">
                            <section class="Powered-by-XIUMI V5" style="position: static;">
                                <section class="" style="position: static;">
                                    <section class="" style="display: inline-block; vertical-align: bottom; margin: auto; width: 4em; height: 4em; border-radius: 100%; background-image: url('{$strGroup[photo]}'); background-position: center center; background-repeat: no-repeat; background-size: cover; border-width: 1px; border-color: #9db4c2;">
                                        <section class="" style="width: 100%; height: 100%; overflow: hidden;">
                                            <img class="" style="width: 100%; height: 100%; opacity: 0;" src="{$strGroup[photo]}" data-ratio="1" data-w="467" _width="100%"/>
                                        </section>
                                    </section>
                                </section>
                            </section>
                        </section>
                    </section>
                </section>
                <section class="Powered-by-XIUMI V5" style="position: static;" >
                    <section  style="position: static;">
                        <section  style="text-align: justify; font-size: 13px;line-height: 30px">
                            <div style="text-align: center;padding-top: 10px">
                                <h1 style="font-size:18px;margin:0;padding:0;font-weight: 500">{$strGroup[groupname]}{if $strGroup['alias']}（$strGroup['alias']）{/if}</h1>
                            </div>
                            <div class="join" style="text-align: center;padding-top: 10px;padding-bottom: 10px">
                                {if $strGroup[joinway] == '0'}
                                    {if $strGroup[isplace]>0}
                                        {if !$strGroupUser||$strGroupUser['isvo']==0}
                                              <span><a class="btn btn-success" href="javascript:if(confirm('确实要报名吗?'))location='{tsUrl('group','join',array('groupid'=>$strGroup['groupid'],'jointype'=>1))}'">报名{if $strGroup['isplace']!=0}馆员{else}成员{/if}</a></span>
                                        {else}
                                             <span><a class="btn btn-warning" href="javascript:void('0');" onclick="exitGroup('{$strGroup['groupid']}');">卸任{if $strGroup['isplace']!=0}馆员{else}成员{/if}</a></span>
                                        {/if}
                                    {else}
                                       {if !$strGroupUser}
                                            <span><a class="btn btn-success" href="javascript:void('0');" onclick="joinGroup('{$strGroup['groupid']}');">加入小组</a></span>
                                        {else}
                                             <span><a class="btn btn-warning" href="javascript:void('0');" onclick="exitGroup('{$strGroup['groupid']}');">退出小组</a></span>
                                        {/if}
                                    {/if}
                                {else}
                                     <span><a class="btn btn-warning">停招{if $strGroup['isplace']!=0}馆{else}成{/if}员</a></span>
                                {/if}


                                {if $strGroup[status]>0&&$strGroup[isplace]==2}
                                    {if $isStockUser==0}
                                        {if $strGroup[isdonate]==1}
                                        <span><a class="btn btn-success" href="javascript:if(confirm('确实要报名馆东吗?'))location='{tsUrl('group','join',array('groupid'=>$strGroup['groupid'],'jointype'=>3))}'">报名馆东</a></span>
                                        {/if}
                                    {else}
                                         <span><a class="btn btn-warning" href="javascript:void('0')" onclick="quitStock('{$strGroup['groupid']}','{$_SESSION['token']}')">卸任馆东</a></span>
                                    {/if}
                                <span><a class="btn btn-success" href="{tsUrl('duty','order',array('groupid'=>$strGroup['groupid']))}">预约值班</a></span>
                                {/if}


                            </div>
<!--
                            <div style="padding-top: 10px;text-align: center;border-top:1px solid  rgb(235, 235, 235) ">-->
                            <div class="user_space_userinfo">
                                <section  style="margin: 5px 0px 0px;
    padding: 16px;
    margin:1em 0;
    border-style: none;
    line-height: 25px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-shadow:0px 2px 8px rgb(153, 153, 153)" id="shifu_c_034" donone="shifuMouseDownCard(&#39;shifu_c_034&#39;)">
                                <div >
                                    <div><i class="fa fa-bookmark-o"></i>
                                        {if $strGroup['isplace']==2&&$strGroup['birth']}始于   {$strGroup['birth']}<span style="padding: 0 4px">·</span>{/if}{$strGroup['role_leader']}：<a href="{tsUrl('user','duty',array('id'=>$strLeader[userid],'groupid'=>$groupid))}"  rel="face" uid="{$strLeader['userid']}">{$strLeader[username]}</a>
                                    </div>

                                <div><i class="fa fa-bookmark-o"></i>
                                    文档 <a href="{tsUrl('group','show',array('id'=>$strGroup['groupid']))}">{$strGroup['count_article']}</a> 篇{if $strGroup['isplace']>0}<span style="padding: 0 4px">·</span>服务 <a href="{tsUrl('group','duty',array('id'=>$strGroup['groupid']))}">{$strGroup['count_duty']}</a> 次{/if}{if $strGroup['isplace']>0}<span style="padding: 0 4px">·</span>活跃{$strGroup['role_user']} $strGroup['count_active'] 位{/if} {if $strGroup['isplace']==2}<span style="padding: 0 4px">·</span>馆东 $strGroup['count_sto'] 位{/if}
                                </div>
                                    {if $strGroup['isplace']==2}
                                    <div><i class="fa fa-bookmark-o"></i>
                                        <span>微澜{if $strGroup['isassist'] }协办{else}主办{/if}</span><span style="padding: 0 4px">·</span>{if $strGroup['status']==0 }已停办{else}{if $strGroup['status']==1 }筹备中{/if}{if $strGroup['status']==2 }运营中{/if}{if $strGroup[iscouncil]}<span style="padding: 0 4px">·</span>已成立理事会{/if}{if $strGroup[isserver]}<span style="padding: 0 4px">·</span>已成立馆员团队{/if}{/if}
                                    </div>
                                    {/if}

                                    {if ($GLOBALS['TS_USER']['isadmin']=='1'||$isStockUser)&&$strGroup['donateurl']&&$strGroup[isdonate]==1}
                                    <div><i class="fa fa-bookmark-o"></i>
                                        请点击<a href="{$strGroup['donateurl']}">这里</a>访问月捐地址
                                    </div>
                                    {/if}
                                    {if $strGroup['isplace']==2&&$strGroupUser}
                                    <div><i class="fa fa-bookmark-o"></i>
                                        请点击<a href="{tsUrl('group','cert2',array('groupid'=>$groupid))}">这里</a>下载馆员证
                                    </div>
                                    {/if}
                                    {if $TS_USER[userid]&&$strGroup['donateurl']&&$strGroup['articleid']&&$strGroup[isdonate]==1}
                                    <div><i class="fa fa-bookmark-o"></i>
                                        请点击<a href="{tsUrl('group','placard',array('id'=>$groupid,'link'=>$GLOBALS['TS_USER']['userid']))}">这里</a>转发链接邀请你的朋友加入本馆
                                    </div>
                                    {/if}
                                    {if $strGroup['isplace']==2}
                                        <div><i class="fa fa-map-marker"></i>
                                            {if $strGroup['coordinate']}<a href="https://uri.amap.com/marker?position={$strGroup['coordinate']}&name={$strGroup[province]}{$strGroup[city]}{$strGroup[address]}">{/if}
                                            {$strGroup[province]}{$strGroup[city]}{$strGroup[address]}
                                            {if $strGroup['coordinate']}</a>{/if}
                                        </div>
                                    {else}
                                       <div> <i class="fa fa-bookmark-o"></i>
                                           {php echo nl2br($strGroup[groupdesc])}
                                       </div>
                                    {/if}
                                    {if $strGroup['begintime']&&strGroup['endtime']}
                                    <div><i class="fa fa-calendar"></i>
                                        本学期{$strGroup['begintime']}至{$strGroup['endtime']}开馆{if $strGroup['openday'] }<span style="padding: 0 4px">·</span>周{$openday}排班{/if}
                                    </div>
                                    {/if}
                                </div>
                                    </section>
                                    {if $strGroup['image']}
                                    <div class="piclist" style="display:flex;justify-content:space-between;">
                                        <ul>
                                            {loop $strGroup['image'] $k $pic}
                                            <li style="border-bottom: none"><a href="{$pic}"><img style="width:100px;height: auto;position:absolute; clip:rect(0px 120px 70px 0px); " src="{$pic}"></a></li>
                                            {/loop}
                                        </ul>
                                    </div>
                                    {/if}
                            </div>
                        </section>
                    </section>
                </section>
            </section>
        </section>
    </section>
</section>